<?php
    if(isset($_GET['id'])){
        $id=$_GET['id'];
        include "./include/dbclass.php";
    }else{
        header("location:index.php");
        exit;
    }
    $sql='select * from article where id = ?';
    $db=new DB();
    $results['0']=$db->getone($sql,$id);
    $sql1='SELECT * FROM `article` WHERE class_id = 2 ORDER BY date DESC limit 10';
    $results['1']=$db->getall($sql1);
//    var_dump($results);
    include "./tpl/list2.php";